package com.hanxiaozhang.system.service;

import com.hanxiaozhang.result.Result;
import com.hanxiaozhang.system.dto.CurrentUserDTO;
import com.hanxiaozhang.system.dto.UserDTO;
import com.hanxiaozhang.system.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户表
 * 
 * @author hanxiaozhang
 * @email hanxiaozhang2018@sina.com
 * @date 2021-04-02
 */
public interface UserService {
	
	UserEntity get(Long userId);

	CurrentUserDTO getCurrentUser(Long userId);
	
	List<UserDTO> list(Map<String, Object> map);
	
	int save(UserDTO user);
	
	int update(UserDTO user);

	Result remove(Long userId);

	Result batchRemove(Long[] userIds);

	void updateUser(UserDTO user);

	void updatePassword(Long userId, String passwordOne);
}
